/*
 * Copyright (C) 2015 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */

@import "base/environment";

#help-dialog {
  padding: 0;
  overflow: visible;
  position: relative;
  #help-dialog-options {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: auto;
    li {
      a {
        border-bottom: 1px solid $ic-border-light;
        display: block;
        padding: $ic-sp;
        text-decoration: none;
        font-weight: bold;

        .subtext {
          display: block;
          @include fontSize(12px);
          color: $ic-font-color--subdued;
          font-weight: normal;
        }
        &:focus {
          outline: none;
          box-shadow: inset 0 0 0 1px $ic-link-color;
        }
        &:focus, &:hover {
          background-color: $ic-bg-light-neutral;
          .text { text-decoration: underline; }
        }
      }
      &.user li.user,
      &.student li.student,
      &.teacher li.teacher,
      &.admin li.admin {
        display: block;
      }
    }
  }
  form {
    padding: 10px 10px 6px;
    width: 380px;
    position: absolute;
    left: 400px;
    top: 0;
  }
  textarea {
    height: 100px;
    resize: none;
  }
  small {
    @include fontSize(10px);
    display: block;
    color: #555;
    margin-top: -6px;
  }
  .ui-state-error, .ui-state-highlight {
    border-radius: 4px !important;
    padding: 10px 10px 10px 35px;
    position: relative;
    a {
      text-decoration: underline;
    }
    .ui-icon {
      position: absolute;
      left: 10px;
      top: 10px;
    }
  }
}

.ui-dialog-header-backlink {
  display: block;
  float: left;
  overflow: hidden;
  text-indent: -999px;
  width: 16px;
  height: 16px;
  margin-left: -4px;
  margin-top: 2px;
  margin-right: 10px;
  background: url(/images/jqueryui/icon_sprite.png) no-repeat left -32px;
  &:hover {
    background-position: left -48px;
  }
}
